package aboutDependency.demo1.loop;
/**
 * 循环依赖案例(续)
 *
 */
public class DependencyLoopClassB {
    private DependencyLoopClassA a;
    //构造函数中,需要创建一个 ClassA 的实例并持有它的引用
    public DependencyLoopClassB() {
        a = new DependencyLoopClassA();
    }

    public void doSomething() {
        // do something with a
    }
}
